/*
    File: Msg.h
 //  HelloWorld
 //
 //  Created by Martin Le C. on 6/7/09.
 //  Copyright 2009 __MyCompanyName__. All rights reserved.
 
 */

#import <Foundation/Foundation.h>
#import <sqlite3.h>

@interface Msg : NSObject {
    // Opaque reference to the underlying database.
    //sqlite3 *database;
    // Primary key in the database.
    NSInteger pk;
    // Attributes.
    NSString *to;
	NSString *f;
    NSString *text;
}
@property (assign, nonatomic, readonly) NSInteger pk;
@property (copy, nonatomic) NSString *to;
@property (copy, nonatomic) NSString *text;
@property (assign, nonatomic) NSString* f;
//Static methods.
+ (void) finalizeStatements;
//Instance methods.
- (id) initWithPrimaryKey:(NSInteger) primaryKey;
- (void) deleteMsg;
- (void) addMsg:(sqlite3 *)db;
@end

